package com.anhuanjia.tools.eao.bean;


import com.efastsoft.framework.annotation.dao.Column;
import com.efastsoft.framework.annotation.dao.Indexes;
import com.efastsoft.framework.annotation.dao.Table;
import com.efastsoft.framework.data.DataType;
import com.efastsoft.framework.orm.DAO;
import com.efastsoft.framework.utility.DateUtil;
import java.util.Date;

@Table("crm_company")
@Indexes("")
@SuppressWarnings("serial")
public class CrmCompany extends DAO<CrmCompany> {
	private static final long serialVersionUID = 3310363149362826028L;
	@Column(type = DataType.LONG, precision = 0, mandatory = true, pk = true)
	protected Long ID;

	@Column(type = DataType.STRING, length = 100, mandatory = true)
	protected String FullName;

	@Column(type = DataType.STRING, length = 10)
	protected String EnterpriseNature;

	@Column(type = DataType.DATETIME)
	protected Date EstablishmentDate;

	@Column(type = DataType.STRING, length = 255)
	protected String EstablishmentAddress;

	@Column(type = DataType.STRING, length = 500)
	protected String SearchKey;

	@Column(type = DataType.STRING, length = 200)
	protected String HomePage;

	@Column(type = DataType.STRING, length = 20)
	protected String ContactName;

	@Column(type = DataType.STRING, length = 20)
	protected String ContactPhone;

	@Column(type = DataType.LONG, precision = 0)
	protected Long ContactPeople;

	@Column(type = DataType.STRING, length = 20)
	protected String Industry;

	@Column(type = DataType.STRING, length = 50)
	protected String LegalRepresentative;

	@Column(type = DataType.CLOB)
	protected String BusinessScope;

	@Column(type = DataType.STRING, length = 50)
	protected String RegisteredCapital;

	@Column(type = DataType.INTEGER, precision = 0)
	protected Integer CompanyScale;

	@Column(type = DataType.CLOB)
	protected String CompanyIntroduction;

	@Column(type = DataType.STRING, length = 100)
	protected String CompanyWebsite;

	@Column(type = DataType.STRING, length = 100)
	protected String OrganizationName;

	@Column(type = DataType.STRING, length = 10)
	protected String QualificationType;

	@Column(type = DataType.STRING, length = 30)
	protected String LicenseNumber;

	@Column(type = DataType.STRING, length = 50)
	protected String TaxPhone;

	@Column(type = DataType.STRING, length = 100)
	protected String TaxAddress;

	@Column(type = DataType.STRING, length = 200)
	protected String Address;

	@Column(type = DataType.STRING, length = 6)
	protected String ZipCode;

	@Column(type = DataType.STRING, length = 20)
	protected String Longitude;

	@Column(type = DataType.STRING, length = 20)
	protected String Latitude;

	@Column(type = DataType.STRING, length = 10)
	protected String CompanySize;

	@Column(type = DataType.STRING, length = 20)
	protected String Fax;

	@Column(type = DataType.STRING, length = 50)
	protected String Email;

	@Column(type = DataType.STRING, length = 100)
	protected String CompanyLogo;

	@Column(type = DataType.STRING, length = 100)
	protected String Prop2;

	@Column(type = DataType.STRING, length = 10)
	protected String Verified;

	@Column(type = DataType.BIT)
	protected Boolean Useable;

	@Column(type = DataType.CLOB)
	protected String CompanyDetail;

	@Column(type = DataType.STRING, length = 11)
	protected String Province;

	@Column(type = DataType.STRING, length = 11)
	protected String City;

	@Column(type = DataType.STRING, length = 11)
	protected String District;

	@Column(type = DataType.STRING, length = 100)
	protected String Street;

	@Column(type = DataType.LONG, precision = 0)
	protected Long AddUser;

	@Column(type = DataType.DATETIME)
	protected Date AddTime;

	@Column(type = DataType.LONG, precision = 0)
	protected Long ModifyUser;

	@Column(type = DataType.DATETIME)
	protected Date ModifyTime;

	@Column(type = DataType.STRING, length = 50)
	protected String ScreenToken;
	
	public Long getID() {
		if(this.ID == null)
			return 0L;
		return this.ID;
	}

	public void setID(Long iD) {
		this.ID = iD;
	}

	public void setID(String iD) {
		if(iD == null) {
			this.ID = null;
			return;
		}
		this.ID = Long.valueOf(iD);
	}

	public String getFullName() {
		return this.FullName;
	}

	public void setFullName(String fullName) {
		this.FullName = fullName;
	}

	public String getEnterpriseNature() {
		return this.EnterpriseNature;
	}

	public void setEnterpriseNature(String enterpriseNature) {
		this.EnterpriseNature = enterpriseNature;
	}

	public Date getEstablishmentDate() {
		return this.EstablishmentDate;
	}

	public void setEstablishmentDate(Date establishmentDate) {
		this.EstablishmentDate = establishmentDate;
	}

	public void setEstablishmentDate(String establishmentDate) {
		if(establishmentDate == null) {
			this.EstablishmentDate = null;
			return;
		}
		this.EstablishmentDate = DateUtil.parseDateTime(establishmentDate);
	}

	public String getEstablishmentAddress() {
		return this.EstablishmentAddress;
	}

	public void setEstablishmentAddress(String establishmentAddress) {
		this.EstablishmentAddress = establishmentAddress;
	}

	public String getSearchKey() {
		return this.SearchKey;
	}

	public void setSearchKey(String searchKey) {
		this.SearchKey = searchKey;
	}

	public String getHomePage() {
		return this.HomePage;
	}

	public void setHomePage(String homePage) {
		this.HomePage = homePage;
	}

	public String getContactName() {
		return this.ContactName;
	}

	public void setContactName(String contactName) {
		this.ContactName = contactName;
	}

	public String getContactPhone() {
		return this.ContactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.ContactPhone = contactPhone;
	}

	public Long getContactPeople() {
		if(this.ContactPeople == null)
			return 0L;
		return this.ContactPeople;
	}

	public void setContactPeople(Long contactPeople) {
		this.ContactPeople = contactPeople;
	}

	public void setContactPeople(String contactPeople) {
		if(contactPeople == null) {
			this.ContactPeople = null;
			return;
		}
		this.ContactPeople = Long.valueOf(contactPeople);
	}

	public String getIndustry() {
		return this.Industry;
	}

	public void setIndustry(String industry) {
		this.Industry = industry;
	}

	public String getLegalRepresentative() {
		return this.LegalRepresentative;
	}

	public void setLegalRepresentative(String legalRepresentative) {
		this.LegalRepresentative = legalRepresentative;
	}

	public String getBusinessScope() {
		return this.BusinessScope;
	}

	public void setBusinessScope(String businessScope) {
		this.BusinessScope = businessScope;
	}

	public String getRegisteredCapital() {
		return this.RegisteredCapital;
	}

	public void setRegisteredCapital(String registeredCapital) {
		this.RegisteredCapital = registeredCapital;
	}

	public Integer getCompanyScale() {
		if(this.CompanyScale == null)
			return 0;
		return this.CompanyScale;
	}

	public void setCompanyScale(Integer companyScale) {
		this.CompanyScale = companyScale;
	}

	public void setCompanyScale(String companyScale) {
		if(companyScale == null) {
			this.CompanyScale = null;
			return;
		}
		this.CompanyScale = Integer.valueOf(companyScale);
	}

	public String getCompanyIntroduction() {
		return this.CompanyIntroduction;
	}

	public void setCompanyIntroduction(String companyIntroduction) {
		this.CompanyIntroduction = companyIntroduction;
	}

	public String getCompanyWebsite() {
		return this.CompanyWebsite;
	}

	public void setCompanyWebsite(String companyWebsite) {
		this.CompanyWebsite = companyWebsite;
	}

	public String getOrganizationName() {
		return this.OrganizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.OrganizationName = organizationName;
	}

	public String getQualificationType() {
		return this.QualificationType;
	}

	public void setQualificationType(String qualificationType) {
		this.QualificationType = qualificationType;
	}

	public String getLicenseNumber() {
		return this.LicenseNumber;
	}

	public void setLicenseNumber(String licenseNumber) {
		this.LicenseNumber = licenseNumber;
	}

	public String getTaxPhone() {
		return this.TaxPhone;
	}

	public void setTaxPhone(String taxPhone) {
		this.TaxPhone = taxPhone;
	}

	public String getTaxAddress() {
		return this.TaxAddress;
	}

	public void setTaxAddress(String taxAddress) {
		this.TaxAddress = taxAddress;
	}

	public String getAddress() {
		return this.Address;
	}

	public void setAddress(String address) {
		this.Address = address;
	}

	public String getZipCode() {
		return this.ZipCode;
	}

	public void setZipCode(String zipCode) {
		this.ZipCode = zipCode;
	}

	public String getLongitude() {
		return this.Longitude;
	}

	public void setLongitude(String longitude) {
		this.Longitude = longitude;
	}

	public String getLatitude() {
		return this.Latitude;
	}

	public void setLatitude(String latitude) {
		this.Latitude = latitude;
	}

	public String getCompanySize() {
		return this.CompanySize;
	}

	public void setCompanySize(String companySize) {
		this.CompanySize = companySize;
	}

	public String getFax() {
		return this.Fax;
	}

	public void setFax(String fax) {
		this.Fax = fax;
	}

	public String getEmail() {
		return this.Email;
	}

	public void setEmail(String email) {
		this.Email = email;
	}

	public String getCompanyLogo() {
		return this.CompanyLogo;
	}

	public void setCompanyLogo(String companyLogo) {
		this.CompanyLogo = companyLogo;
	}

	public String getProp2() {
		return this.Prop2;
	}

	public void setProp2(String prop2) {
		this.Prop2 = prop2;
	}

	public String getVerified() {
		return this.Verified;
	}

	public void setVerified(String verified) {
		this.Verified = verified;
	}

	public Boolean getUseable() {
		if(this.Useable == null)
			return false;
		return this.Useable;
	}

	public Boolean isUseable() {
		if(this.Useable == null)
			return false;
		return this.Useable;
	}

	public void setUseable(Boolean useable) {
		this.Useable = useable;
	}

	public void setUseable(String useable) {
		if(useable == null) {
			this.Useable = false;
			return;
		}
		this.Useable = Boolean.valueOf("true".equals(useable) || "1".equals(useable));
	}

	public String getCompanyDetail() {
		return this.CompanyDetail;
	}

	public void setCompanyDetail(String companyDetail) {
		this.CompanyDetail = companyDetail;
	}

	public String getProvince() {
		return this.Province;
	}

	public void setProvince(String province) {
		this.Province = province;
	}

	public String getCity() {
		return this.City;
	}

	public void setCity(String city) {
		this.City = city;
	}

	public String getDistrict() {
		return this.District;
	}

	public void setDistrict(String district) {
		this.District = district;
	}

	public String getStreet() {
		return this.Street;
	}

	public void setStreet(String street) {
		this.Street = street;
	}

	public Long getAddUser() {
		if(this.AddUser == null)
			return 0L;
		return this.AddUser;
	}

	public void setAddUser(Long addUser) {
		this.AddUser = addUser;
	}

	public void setAddUser(String addUser) {
		if(addUser == null) {
			this.AddUser = null;
			return;
		}
		this.AddUser = Long.valueOf(addUser);
	}

	public Date getAddTime() {
		return this.AddTime;
	}

	public void setAddTime(Date addTime) {
		this.AddTime = addTime;
	}

	public void setAddTime(String addTime) {
		if(addTime == null) {
			this.AddTime = null;
			return;
		}
		this.AddTime = DateUtil.parseDateTime(addTime);
	}

	public Long getModifyUser() {
		if(this.ModifyUser == null)
			return 0L;
		return this.ModifyUser;
	}

	public void setModifyUser(Long modifyUser) {
		this.ModifyUser = modifyUser;
	}

	public void setModifyUser(String modifyUser) {
		if(modifyUser == null) {
			this.ModifyUser = null;
			return;
		}
		this.ModifyUser = Long.valueOf(modifyUser);
	}

	public Date getModifyTime() {
		return this.ModifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.ModifyTime = modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		if(modifyTime == null) {
			this.ModifyTime = null;
			return;
		}
		this.ModifyTime = DateUtil.parseDateTime(modifyTime);
	}

	public String getScreenToken() {
		return this.ScreenToken;
	}

	public void setScreenToken(String screenToken) {
		this.ScreenToken = screenToken;
	}

}